package com.example.cqh_votesys.sevice.impl;

import com.example.cqh_votesys.mapper.EnterpriseMapper;
import com.example.cqh_votesys.pojo.pojo.EnterPrice;
import com.example.cqh_votesys.sevice.EnterpriseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: pollux
 * @CreateTime: 2024-06-30
 * @Description: 企业类业务层
 * @Version: 1.0
 */

@Service
public class EnterpriseServiceImpl implements EnterpriseService {

    @Autowired
    private EnterpriseMapper enterpriseMapper;

    /**
     *
     * @description: 获取企业列表
     * @return: com.example.cqh_votesys.pojo.result.Result<com.example.cqh_votesys.pojo.pojo.EnterPrice>
     * @author: pollux
     * @date: 2024/6/30 17:15
     */
    @Override
    public EnterPrice[] getEnterpriseList() {
        EnterPrice[] enterPrises =  enterpriseMapper.getList();
        return enterPrises;
    }
}










